projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e1eee2
)
textview: Make cursor display again
author
Benjamin Otte
<otte@redhat.com>
Thu, 19 Aug 2010 10:07:24 +0000
(12:07 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 19 Aug 2010 10:08:23 +0000
(12:08 +0200)
The code for initializing the clip rectangle was accidentally deleted in
a previous patch. Put it back.
gtk/gtktextdisplay.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextdisplay.c
b/gtk/gtktextdisplay.c
index 5f79ce4ce21a4bea95ef8a98038315c4c7df9585..8e6d4521b7164205cafc4ec29b53b3ca951f508f 100644
(file)
--- a/
gtk/gtktextdisplay.c
+++ b/
gtk/gtktextdisplay.c
@@
-835,6
+835,12
@@
gtk_text_layout_draw (GtkTextLayout *layout,
cairo_rectangle (cr, x, y, width, height);
cairo_clip (cr);
+ /* cursor code needs this */
+ clip.x = x;
+ clip.y = y;
+ clip.width = width;
+ clip.height = height;
+
gdk_cairo_set_source_color (cr, &widget->style->text[widget->state]);
text_renderer = get_text_renderer ();